Hello, I'm trying to do some DX inputs but I have this error:
C:\beep\beep\main.c|11|error: `INPUT' undeclared (first use in this function)|
What can I do to solve this?
at Defines.h I have both setInputDX and releaseInputDX prototypes.
Code:#include <stdio.h> #include <stdlib.h> #include <process.h> #include <windows.h> #include <winuser.h> #include "Bip.h" #include "Defines.h" #define _WIN32_WINNT 0x0500 static void setInputDX(WORD inputCodeSet) { INPUT inp[1]; //ERROR AT THIS LINE memset(inp, 0, sizeof(INPUT)); inp[0].type = INPUT_KEYBOARD; inp[0].ki.wScan = inputCodeSet; inp[0].ki.dwExtraInfo = 0; SendInput(1, inp, sizeof(INPUT)); } static void releaseInputDX(WORD inputCodeRelease) {} int main() { setInputDX(RCONTROL); releaseInputDX(RCONTROL); return -1; }